Visual Basic (Declaration) | |
---|---|
Function PreviousPageAsync( _ Optional ByVal onSuccess As Action(Of Page(Of T)), _ Optional ByVal onFail As Action(Of Exception) _ ) As PageOperationResult(Of T) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As IPager(Of T) Dim onSuccess As Action(Of Page(Of T)) Dim onFail As Action(Of Exception) Dim value As PageOperationResult(Of T) value = instance.PreviousPageAsync(onSuccess, onFail) |
C# | |
---|---|
PageOperationResult<T> PreviousPageAsync( Action<Page<T>> onSuccess, Action<Exception> onFail ) |
C++/CLI | |
---|---|
PageOperationResult<T^>^ PreviousPageAsync( Action<Page<T^>^>^ onSuccess, Action<Exception^>^ onFail ) |
Parameters
- onSuccess
- An optional callback to be called when the page was successfully retrieved.
- onFail
- An optional callback to be called when the page retrieval failed.
Return Value
Asynchronous operation result.Exception | Description |
---|---|
System.InvalidOperationException | A page change is in progress. |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family